/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	CPrompt.java
 * 模块说明：	
 * 修改历史：
 * 2006-11-14 - lxm - 创建。
 */
package com.hd123.rumba.prompt;

import com.hd123.rumba.runtime.CBaseEntity;
import com.hd123.rumba.user.CPermission;
import com.hd123.rumba.util.HashMap2;

/**
 * 提示信息 | 常量类
 * 
 * @author lxm
 * @see IPrompt
 * 
 */
public class CPrompt extends CBaseEntity {
  
  public static String CAPTION_CLASS = "提示信息";

  /** @see IPrompt#getState() */
  public static final Integer VALUE_STATE_NORMAL = new Integer(0);
  public static String CAPTION_STATE_NORMAL = "正常";
  public static final Integer VALUE_STATE_READ = new Integer(1);
  public static String CAPTION_STATE_READ = "已阅读";
  public static HashMap2 STATEMAP = new HashMap2().put2(VALUE_STATE_NORMAL, CAPTION_STATE_NORMAL)
      .put2(VALUE_STATE_READ, CAPTION_STATE_READ);

  /**
   * @see IPrompt#getReceiverUser()
   * @see IPrompt#getReceiverRole()
   */
  public static String CAPTION_RECEIVER = "收件方";
  
  /** @see IPrompt#getSenderId() */
  public static String CAPTION_SENDER = "发件人";
  public static String CAPTION_SENDERID = "发件人ID";
  public static final int LENGTH_SENDERID = 38;
  
  /** @see IPrompt#getSenderClassName() */
  public static String CAPTION_SENDERCLASSNAME = "发件人类名";
  public static final int LENGTH_SENDERCLASSNAME = 128;
  
  /** @see IPrompt#getLevel() */
  public static String CAPTION_LEVEL = "提示级别";
  public static final Integer VALUE_LEVEL_NORMAL = new Integer(0);
  public static final Integer VALUE_LEVEL_HIGHER = new Integer(1);
  public static final Integer VALUE_LEVEL_HIGHEST = new Integer(2);
  
  /** @see IPrompt#getMessage() */
  public static String CAPTION_MESSAGE = "标题";
  public static final int LENGTH_MESSAGE = 255;
  
  /** @see IPrompt#getText() */
  public static String CAPTION_TEXT = "正文";

  /** @see IPrompt#getFlag() */
  public static String CAPTION_FLAG = "标记";
  public static final int LENGTH_FLAG = 16;
  public static final String VALUE_LEVEL_RED = "red";
  public static final String VALUE_LEVEL_BLUE = "blue";
  public static final String VALUE_LEVEL_YELLOW = "yellow";
  public static final String VALUE_LEVEL_GREEN = "green";
  public static final String VALUE_LEVEL_ORANGE = "orange";
  public static final String VALUE_LEVEL_PURPLE = "purple";
  
  /** @see IPrompt#getTime() */
  public static String CAPTION_TIME = "发生时间";
  
  /** @see IPrompt#getLink() */
  public static String CAPTION_LINK = "链接";
  public static final int LENGTH_LINK = 255;
  
  /** @see IPrompt#getLinkPerm() */
  public static String CAPTION_LINKPERM = "链接对应的权限";
  public static final int LENGTH_LINKPERM = CPermission.LENGTH_CODE;
}
